//
//  UIView+Frame.m
//  UIView,UIWindow
//
//  Created by 402030900@qq.com on 16/7/14.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
-(void)setLyr_x:(CGFloat)lyr_x{
    CGRect rect = self.frame;
    rect.origin.x =lyr_x;
    self.frame = rect;
    
}
-(void)setLyr_y:(CGFloat)lyr_y{
    CGRect rect = self.frame;
    rect.origin.y = lyr_y;
    self.frame = rect;
}
-(void)setLyr_width:(CGFloat)lyr_width{
    CGRect rect = self.frame;
    rect.size.width = lyr_width;
    self.frame = rect;
}
-(void)setLyr_height:(CGFloat)lyr_height{
    CGRect rect = self.frame;
    rect.size.width = lyr_height;
    self.frame = rect;
}
-(CGFloat)lyr_x{
    return self.frame.origin.x;
}
-(CGFloat)lyr_y{

    return self.frame.origin.y;
}
-(CGFloat)lyr_width{
    return self.frame.size.width;
}
-(CGFloat)lyr_height{
    return self.frame.size.height;
}

@end
